#include <iostream>
#include "Node.h"


/* Definition of the regular constructor  "Node"  */     
	Node::Node(int value, Node* next):
	value(value), next(next)
	{}// end Node regular constructor
	
/* Definition of the copy constructor  "Node"  */     
	Node::Node( Node & nde ):
	value(nde.value), next(nde.next) 
	{}// end Node copy constructor	
															  
/*  Definition of the dedstructor  "~Node" of the class "Node"  */ 
    Node::~Node()    
	{} // end Node destructor	 

/*  Definition of the method "getValue" of the class "Node"  */    
    int Node::getValue() const
	  {
        return value; //returns the value of the node
	  } // end function getValue

/*  Definition of the method "getNext" of the class "Node"  */    
    Node* Node::getNext() const
	  {
		return next; //returns the next node of the node
	  } // end function getNext
	  
/*  Definition of the method "setNext" of the class "Node"  */    
    void Node::setNext(Node* next_node)
	  {
		 next = next_node; //changes the next node of the node
	  } // end function setNext	 
	
/*  Definition of the method "setValue" of the class "Node"  */    
    void Node::setValue(int val)
	  {
        value = val; //changes the node's value of the node
	  } // end function setValue	 	      
